package com.emapp.lccode.view;

import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.viewbinding.ViewBinding;

import com.emapp.lccode.databinding.PopCheckBinding;
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;

/**
 * 巡检
 */
public class CheckDialog extends BaseDialog {

    private PopCheckBinding binding;

    public static CheckDialog create() {
        return new CheckDialog();
    }

    public CheckDialog() {
    }


    public void show(FragmentActivity activity) {
        for (Fragment f : activity.getSupportFragmentManager().getFragments())
            if (f instanceof BottomSheetDialogFragment) return;
        show(activity.getSupportFragmentManager(), null);
    }

    @Override
    protected ViewBinding getBinding(@NonNull LayoutInflater inflater, @Nullable ViewGroup container) {
        return binding = PopCheckBinding.inflate(inflater, container, false);
    }

    @Override
    protected void initView() {
    }

}
